﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Convert类的转换
{
    class Program
    {
        static void Main(string[] args)
        {
            string a = "123";
            int b = Convert.ToInt32(a);//Convert类的形式为ToXXX（xxx）,即把参数xxx转化成XXX类型
            Console.WriteLine("b的值为{0}", b);
            Console.ReadLine();
        }
    }
}
